home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / earcd / dev / c / asyncio.lha / AsyncIO / src / SendPacket.c < prev    next >
C/C++ Source or Header  |  1997-02-18  |  412b  |  19 lines

  1. #include "async.h"
  2.  
  3.  
  4. /* send out an async packet to the file system. */
  5. VOID
  6. AS_SendPacket( struct AsyncFile *file, APTR arg2 )
  7. {
  8. #ifdef ASIO_NOEXTERNALS
  9.     struct ExecBase    *SysBase;
  10.  
  11.     SysBase = file->af_SysBase;
  12. #endif
  13.  
  14.     file->af_Packet.sp_Pkt.dp_Port = &file->af_PacketPort;
  15.     file->af_Packet.sp_Pkt.dp_Arg2 = ( LONG ) arg2;
  16.     PutMsg( file->af_Handler, &file->af_Packet.sp_Msg );
  17.     file->af_PacketPending = TRUE;
  18. }
  19.